package com.zpark.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @PackageName: com.zpark.controller
 * @ClassName: UserController
 * @Description:
 * @author: RZS
 * @date: 2023/4/17  15:38
 */
@Controller
public class UserController {

//    @RequestMapping("/reg_page.do")
//    public String regPage(){
//        return "reg";
//    }

    @GetMapping("/test/{param}")
    public ModelAndView test(@PathVariable("param") String param){
        ModelAndView view = new ModelAndView();
        view.addObject("msg", param);
        view.setViewName("test");

        return view;
    }
}
